package com.hzh.cusviewdemo.Presenter;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 歌词数据
 */
public class MusicSongData implements Parcelable {
    private String lineLyric;  // 歌词
    private String time;       // 歌词所处的时间位置

    public String getLineLyric() {
        return lineLyric;
    }

    public void setLineLyric(String lineLyric) {
        this.lineLyric = lineLyric;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.lineLyric);
        dest.writeString(this.time);
    }

    public void readFromParcel(Parcel source) {
        this.lineLyric = source.readString();
        this.time = source.readString();
    }

    public MusicSongData() {
    }

    public MusicSongData(String lineLyric, String time) {
        this.lineLyric = lineLyric;
        this.time = time;
    }

    protected MusicSongData(Parcel in) {
        this.lineLyric = in.readString();
        this.time = in.readString();
    }

    public static final Parcelable.Creator<MusicSongData> CREATOR = new Parcelable.Creator<MusicSongData>() {
        @Override
        public MusicSongData createFromParcel(Parcel source) {
            return new MusicSongData(source);
        }

        @Override
        public MusicSongData[] newArray(int size) {
            return new MusicSongData[size];
        }
    };
}
